package demo2;
//写好之后把重写的toString注释掉看看输出的是啥
/**
 *   一张牌
 */
public class Poker {
   private String suit;
   private int rank;

    public Poker(String suit, int rank) {
        this.suit = suit;
        this.rank = rank;
    }

    @Override
    public String toString() {
        return suit+" "+rank;
    }
}
